/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
$(function() {
        $("#rolin").rolinTab();
         indexLazyload($(".channel img[data-original],.linebox img[data-original]"));
});
$.fn.rolinTab = function() {
        var $that = $(this);
        var $first = $(this).find("li em").eq(0);
        $first.addClass("open");
        $first.siblings("dl.rocon").show();
        $(this).find("li em").click(function() {
                if ($(this).hasClass('open'))
                        return;
                $that.find("dl.rocon").slideUp("fast");
                $that.find("li em").removeClass("open");
                $(this).addClass("open");
                $(this).siblings("dl.rocon").slideDown("fast");
        });
        $(this).find("li em a").click(function(e) {
                e.stopPropagation();
        });
};

function indexLazyload(a) {
        a.lazyload({
                effect: "fadeIn"
        });
}

